package game.web.dao.factory;

import game.web.dao.UserDAO;
import game.web.dao.impl.UserDAOImpl;
import projectx.core.base.ProjectXSystemException;

public class UserFactory {

	private static UserFactory factory = new UserFactory();

	public static void setFactory(UserFactory factory) {
		UserFactory.factory = factory;
	}

	public static UserFactory getFactory() {
		return factory;
	}

	public UserDAO getUserDAO() throws ProjectXSystemException {
		return new UserDAOImpl();
	}
}
